import Vue from 'vue'
import Router from 'vue-router'
import Meta from 'vue-meta'

Vue.use(Router)
Vue.use(Meta)

// route-level code splitting
const createListView = id => () => import('../views/CreateListView').then(m => m.default(id))
const home = () => import('../views/home/home.vue');

export function createRouter () {
  return new Router({
    mode: 'history',
    fallback: false,
    scrollBehavior: () => ({ y: 0 }),
    routes: [
      { path: '/', component: home },
      { path: '/home', component: home},
    ]
  })
}
